package cn.line5.seam.webapp;

import java.util.ArrayList;
import java.util.List;

/**
 * <h1>上传结果类</h1>
 * 
 * @author Liu,Xiaojun
 * @since JDK1.6
 */
public class UploadResult {

	// 是否成功
	private Boolean success = false;
	
	// 需要上传文件个数
	private Integer fileNum = 0;
	
	// 成功上传文件信息列表
	private List<UploadFile> fileList = new ArrayList<UploadFile>();

	/**
	 * 上传是否成功
	 */
	public Boolean isSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	/**
	 * 获取需要上传的文件个数
	 */
	public Integer getFileNum() {
		return fileNum;
	}

	public void setFileNum(Integer fileNum) {
		this.fileNum = fileNum;
	}

	/**
	 * 获取已经上传的文件列表信息
	 */
	public List<UploadFile> getFileList() {
		return fileList;
	}

	public void setFileList(List<UploadFile> fileList) {
		this.fileList = fileList;
	}
	
	public void addFileList(UploadFile uploadFile) {
		this.fileList.add(uploadFile);
	}
	
}